<h2>登录</h2>

<%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
  <div class="form-inputs">
    <%= devise_error_messages! %>
    <%= notice %>
    <%= alert %>
    <%= f.input :user_name, required: false, autofocus: true, label: '管理员登录名' %>
    <%= f.input :password, required: false, label: '管理员密码' %>
  </div>

  <div class="form-actions">
    <%= f.button :submit, "登录" %>
  </div>
<% end %>

<%= render "admins/shared/links" %>
